package cn.zmwh.bbs.modules.bbs.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 点赞记录
 * </p>
 *
 * @author dmzmwh
 * @since 2025-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("like_record")
@ApiModel(value="LikeRecord对象", description="点赞记录")
public class LikeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作类型0:文章点赞 1:评论点赞")
    private Integer optType;

    @ApiModelProperty(value = "主体ID")
    private String objectId;

    @ApiModelProperty(value = "用户ID")
    private Long uid;

    @ApiModelProperty(value = "发布时间")
    private Date createTime;

    @ApiModelProperty(value = "主体作者ID")
    private String authorUserId;


}
